package com.android.superobstacleavoider;

import javax.microedition.khronos.opengles.GL10;

public class Plane {

	private ModelData m_planeModel;

	public void setModel(ModelData model) {
		m_planeModel = model;
	}

	public Plane() {

	}

	public void drawRoad(GL10 gl) {
		ModelHandler.drawModel(gl, m_planeModel, new Vector3(0.0015f, 0.002f,
				0.0018f), new Vector3(0.0f, -5.0f, -42.0f), null, 0, false);
	}

	public void drawBackdrop(GL10 gl, float a_x) {
		ModelHandler.drawModel(gl, m_planeModel, new Vector3(0.0055f, 0.02f,
				0.0015f), new Vector3(a_x, 0.0f, -95.0f), new Vector3(1.0f, 0,
				0), 90, false);
	}

	public void drawGrass(GL10 gl) {
		ModelHandler.drawModel(gl, m_planeModel, new Vector3(0.007f, 0.02f,
				0.0015f), new Vector3(0.0f, -5.01f, -42.0f), null, 0, false);
	}
}
